﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TrangChu.Master" AutoEventWireup="true" CodeBehind="QuiDinh.aspx.cs" Inherits="Airplane.QuiDinh" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<div style=" width:100%; height:50px; color:Blue; font-family:Tahoma; font-size:larger; text-align:center;"><h2>Các qui định hệ thống</h2></div>
    <div style=" width:50%; margin-left:200px; ">
        <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="302px" 
            AutoGenerateRows="False" BackColor="#33CCFF" BorderColor="#999999" 
            BorderStyle="None" BorderWidth="2px" CellPadding="5" CellSpacing="3" 
            DataSourceID="dsQuiDinh" ForeColor="#006600" GridLines="Vertical">
            <AlternatingRowStyle BackColor="Gainsboro" />
            <EditRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <Fields>
                <asp:BoundField DataField="HeSoChuyenDam" HeaderText="Hệ số chuyển dặm" 
                    SortExpression="HeSoChuyenDam" />
                <asp:BoundField DataField="ThoiGianHuy" HeaderText="Thời gian hủy" 
                    SortExpression="ThoiGianHuy" />
                <asp:BoundField DataField="MucDamNangHang" HeaderText="Mức dặm nâng hạng" 
                    SortExpression="MucDamNangHang" />
                <asp:BoundField DataField="ThoiGianBatDau" DataFormatString="{0:d}" 
                    HeaderText="Thời gian bắt đầu" SortExpression="ThoiGianBatDau" />
            </Fields>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" BorderStyle="Ridge" BorderWidth="3px" 
                Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <RowStyle BackColor="#3399FF" BorderColor="#996633" ForeColor="Black" />
        </asp:DetailsView>
        <asp:SqlDataSource ID="dsQuiDinh" runat="server" 
            ConnectionString="<%$ ConnectionStrings:AirplaneConnectionString %>" 
            SelectCommand="SELECT [HeSoChuyenDam], [ThoiGianHuy], [MucDamNangHang], [ThoiGianBatDau] FROM [THAMSOHETHONG]">
        </asp:SqlDataSource>
    </div>
    <div style="width:80%; margin-left:100px; margin-right:100px;"> 
        <asp:SqlDataSource ID="dsLoaiVe" runat="server" 
            ConnectionString="<%$ ConnectionStrings:AirplaneConnectionString %>" 
            SelectCommand="SELECT [TenLoai], [DuocPhepHuy], [DuocPhepNangHang], [DuocPhepDoiLichTrinh], [PhiHuyTruocNgayKhoiHanh], [PhiHuySauNgayKhoiHanh], [PhiNangHangTruocNgayKhoiHanh], [PhiDoiLichTrinhTruocNgayKhoiHanh], [PhiNangHangSauNgayKhoiHanh], [PhiDoiLichTrinhSauNgayKhoiHanh], [ThoiGianSuDung], [HeSoCongDam], [DonViTien] FROM [LOAIVE]">
        </asp:SqlDataSource>
<asp:ListView ID="ListView1" runat="server" DataSourceID="dsLoaiVe" 
            SkinID="2" >
    <AlternatingItemTemplate>
        <li style="background-color: #FFF8DC;">TenLoai:
            <asp:Label ID="TenLoaiLabel" runat="server" Text='<%# Eval("TenLoai") %>' />
            <br />
            DuocPhepHuy:
            <asp:Label ID="DuocPhepHuyLabel" runat="server" 
                Text='<%# Eval("DuocPhepHuy") %>' />
            <br />
            DuocPhepNangHang:
            <asp:Label ID="DuocPhepNangHangLabel" runat="server" 
                Text='<%# Eval("DuocPhepNangHang") %>' />
            <br />
            DuocPhepDoiLichTrinh:
            <asp:Label ID="DuocPhepDoiLichTrinhLabel" runat="server" 
                Text='<%# Eval("DuocPhepDoiLichTrinh") %>' />
            <br />
            PhiHuyTruocNgayKhoiHanh:
            <asp:Label ID="PhiHuyTruocNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiHuyTruocNgayKhoiHanh") %>' />
            <br />
            PhiHuySauNgayKhoiHanh:
            <asp:Label ID="PhiHuySauNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiHuySauNgayKhoiHanh") %>' />
            <br />
            PhiNangHangTruocNgayKhoiHanh:
            <asp:Label ID="PhiNangHangTruocNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiNangHangTruocNgayKhoiHanh") %>' />
            <br />
            PhiDoiLichTrinhTruocNgayKhoiHanh:
            <asp:Label ID="PhiDoiLichTrinhTruocNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiDoiLichTrinhTruocNgayKhoiHanh") %>' />
            <br />
            PhiNangHangSauNgayKhoiHanh:
            <asp:Label ID="PhiNangHangSauNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiNangHangSauNgayKhoiHanh") %>' />
            <br />
            PhiDoiLichTrinhSauNgayKhoiHanh:
            <asp:Label ID="PhiDoiLichTrinhSauNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiDoiLichTrinhSauNgayKhoiHanh") %>' />
            <br />
            ThoiGianSuDung:
            <asp:Label ID="ThoiGianSuDungLabel" runat="server" 
                Text='<%# Eval("ThoiGianSuDung") %>' />
            <br />
            HeSoCongDam:
            <asp:Label ID="HeSoCongDamLabel" runat="server" 
                Text='<%# Eval("HeSoCongDam") %>' />
            <br />
            DonViTien:
            <asp:Label ID="DonViTienLabel" runat="server" Text='<%# Eval("DonViTien") %>' />
            <br />
        </li>
    </AlternatingItemTemplate>
    <EditItemTemplate>
        <li style="background-color: #008A8C;color: #FFFFFF;">TenLoai:
            <asp:TextBox ID="TenLoaiTextBox" runat="server" Text='<%# Bind("TenLoai") %>' />
            <br />
            DuocPhepHuy:
            <asp:TextBox ID="DuocPhepHuyTextBox" runat="server" 
                Text='<%# Bind("DuocPhepHuy") %>' />
            <br />
            DuocPhepNangHang:
            <asp:TextBox ID="DuocPhepNangHangTextBox" runat="server" 
                Text='<%# Bind("DuocPhepNangHang") %>' />
            <br />
            DuocPhepDoiLichTrinh:
            <asp:TextBox ID="DuocPhepDoiLichTrinhTextBox" runat="server" 
                Text='<%# Bind("DuocPhepDoiLichTrinh") %>' />
            <br />
            PhiHuyTruocNgayKhoiHanh:
            <asp:TextBox ID="PhiHuyTruocNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiHuyTruocNgayKhoiHanh") %>' />
            <br />
            PhiHuySauNgayKhoiHanh:
            <asp:TextBox ID="PhiHuySauNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiHuySauNgayKhoiHanh") %>' />
            <br />
            PhiNangHangTruocNgayKhoiHanh:
            <asp:TextBox ID="PhiNangHangTruocNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiNangHangTruocNgayKhoiHanh") %>' />
            <br />
            PhiDoiLichTrinhTruocNgayKhoiHanh:
            <asp:TextBox ID="PhiDoiLichTrinhTruocNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiDoiLichTrinhTruocNgayKhoiHanh") %>' />
            <br />
            PhiNangHangSauNgayKhoiHanh:
            <asp:TextBox ID="PhiNangHangSauNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiNangHangSauNgayKhoiHanh") %>' />
            <br />
            PhiDoiLichTrinhSauNgayKhoiHanh:
            <asp:TextBox ID="PhiDoiLichTrinhSauNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiDoiLichTrinhSauNgayKhoiHanh") %>' />
            <br />
            ThoiGianSuDung:
            <asp:TextBox ID="ThoiGianSuDungTextBox" runat="server" 
                Text='<%# Bind("ThoiGianSuDung") %>' />
            <br />
            HeSoCongDam:
            <asp:TextBox ID="HeSoCongDamTextBox" runat="server" 
                Text='<%# Bind("HeSoCongDam") %>' />
            <br />
            DonViTien:
            <asp:TextBox ID="DonViTienTextBox" runat="server" 
                Text='<%# Bind("DonViTien") %>' />
            <br />
            <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                Text="Update" />
            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                Text="Cancel" />
        </li>
    </EditItemTemplate>
    <EmptyDataTemplate>
        No data was returned.
    </EmptyDataTemplate>
    <InsertItemTemplate>
        <li style="">TenLoai:
            <asp:TextBox ID="TenLoaiTextBox" runat="server" Text='<%# Bind("TenLoai") %>' />
            <br />
            DuocPhepHuy:
            <asp:TextBox ID="DuocPhepHuyTextBox" runat="server" 
                Text='<%# Bind("DuocPhepHuy") %>' />
            <br />
            DuocPhepNangHang:
            <asp:TextBox ID="DuocPhepNangHangTextBox" runat="server" 
                Text='<%# Bind("DuocPhepNangHang") %>' />
            <br />
            DuocPhepDoiLichTrinh:
            <asp:TextBox ID="DuocPhepDoiLichTrinhTextBox" runat="server" 
                Text='<%# Bind("DuocPhepDoiLichTrinh") %>' />
            <br />
            PhiHuyTruocNgayKhoiHanh:
            <asp:TextBox ID="PhiHuyTruocNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiHuyTruocNgayKhoiHanh") %>' />
            <br />
            PhiHuySauNgayKhoiHanh:
            <asp:TextBox ID="PhiHuySauNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiHuySauNgayKhoiHanh") %>' />
            <br />
            PhiNangHangTruocNgayKhoiHanh:
            <asp:TextBox ID="PhiNangHangTruocNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiNangHangTruocNgayKhoiHanh") %>' />
            <br />
            PhiDoiLichTrinhTruocNgayKhoiHanh:
            <asp:TextBox ID="PhiDoiLichTrinhTruocNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiDoiLichTrinhTruocNgayKhoiHanh") %>' />
            <br />
            PhiNangHangSauNgayKhoiHanh:
            <asp:TextBox ID="PhiNangHangSauNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiNangHangSauNgayKhoiHanh") %>' />
            <br />
            PhiDoiLichTrinhSauNgayKhoiHanh:
            <asp:TextBox ID="PhiDoiLichTrinhSauNgayKhoiHanhTextBox" runat="server" 
                Text='<%# Bind("PhiDoiLichTrinhSauNgayKhoiHanh") %>' />
            <br />
            ThoiGianSuDung:
            <asp:TextBox ID="ThoiGianSuDungTextBox" runat="server" 
                Text='<%# Bind("ThoiGianSuDung") %>' />
            <br />
            HeSoCongDam:
            <asp:TextBox ID="HeSoCongDamTextBox" runat="server" 
                Text='<%# Bind("HeSoCongDam") %>' />
            <br />
            DonViTien:
            <asp:TextBox ID="DonViTienTextBox" runat="server" 
                Text='<%# Bind("DonViTien") %>' />
            <br />
            <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                Text="Insert" />
            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                Text="Clear" />
        </li>
    </InsertItemTemplate>
    <ItemSeparatorTemplate>
        <br />
    </ItemSeparatorTemplate>
    <ItemTemplate>
        <li style="background-color: #DCDCDC;color: #000000;">TenLoai:
            <asp:Label ID="TenLoaiLabel" runat="server" Text='<%# Eval("TenLoai") %>' />
            <br />
            DuocPhepHuy:
            <asp:Label ID="DuocPhepHuyLabel" runat="server" 
                Text='<%# Eval("DuocPhepHuy") %>' />
            <br />
            DuocPhepNangHang:
            <asp:Label ID="DuocPhepNangHangLabel" runat="server" 
                Text='<%# Eval("DuocPhepNangHang") %>' />
            <br />
            DuocPhepDoiLichTrinh:
            <asp:Label ID="DuocPhepDoiLichTrinhLabel" runat="server" 
                Text='<%# Eval("DuocPhepDoiLichTrinh") %>' />
            <br />
            PhiHuyTruocNgayKhoiHanh:
            <asp:Label ID="PhiHuyTruocNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiHuyTruocNgayKhoiHanh") %>' />
            <br />
            PhiHuySauNgayKhoiHanh:
            <asp:Label ID="PhiHuySauNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiHuySauNgayKhoiHanh") %>' />
            <br />
            PhiNangHangTruocNgayKhoiHanh:
            <asp:Label ID="PhiNangHangTruocNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiNangHangTruocNgayKhoiHanh") %>' />
            <br />
            PhiDoiLichTrinhTruocNgayKhoiHanh:
            <asp:Label ID="PhiDoiLichTrinhTruocNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiDoiLichTrinhTruocNgayKhoiHanh") %>' />
            <br />
            PhiNangHangSauNgayKhoiHanh:
            <asp:Label ID="PhiNangHangSauNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiNangHangSauNgayKhoiHanh") %>' />
            <br />
            PhiDoiLichTrinhSauNgayKhoiHanh:
            <asp:Label ID="PhiDoiLichTrinhSauNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiDoiLichTrinhSauNgayKhoiHanh") %>' />
            <br />
            ThoiGianSuDung:
            <asp:Label ID="ThoiGianSuDungLabel" runat="server" 
                Text='<%# Eval("ThoiGianSuDung") %>' />
            <br />
            HeSoCongDam:
            <asp:Label ID="HeSoCongDamLabel" runat="server" 
                Text='<%# Eval("HeSoCongDam") %>' />
            <br />
            DonViTien:
            <asp:Label ID="DonViTienLabel" runat="server" Text='<%# Eval("DonViTien") %>' />
            <br />
        </li>
    </ItemTemplate>
    <LayoutTemplate>
        <ul ID="itemPlaceholderContainer" runat="server" 
            style="font-family: Verdana, Arial, Helvetica, sans-serif;">
            <li runat="server" id="itemPlaceholder" />
        </ul>
        <div style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;">
            <asp:DataPager ID="DataPager1" runat="server">
                <Fields>
                    <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                        ShowLastPageButton="True" />
                </Fields>
            </asp:DataPager>
        </div>
    </LayoutTemplate>
    <SelectedItemTemplate>
        <li style="background-color: #008A8C;font-weight: bold;color: #FFFFFF;">TenLoai:
            <asp:Label ID="TenLoaiLabel" runat="server" Text='<%# Eval("TenLoai") %>' />
            <br />
            DuocPhepHuy:
            <asp:Label ID="DuocPhepHuyLabel" runat="server" 
                Text='<%# Eval("DuocPhepHuy") %>' />
            <br />
            DuocPhepNangHang:
            <asp:Label ID="DuocPhepNangHangLabel" runat="server" 
                Text='<%# Eval("DuocPhepNangHang") %>' />
            <br />
            DuocPhepDoiLichTrinh:
            <asp:Label ID="DuocPhepDoiLichTrinhLabel" runat="server" 
                Text='<%# Eval("DuocPhepDoiLichTrinh") %>' />
            <br />
            PhiHuyTruocNgayKhoiHanh:
            <asp:Label ID="PhiHuyTruocNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiHuyTruocNgayKhoiHanh") %>' />
            <br />
            PhiHuySauNgayKhoiHanh:
            <asp:Label ID="PhiHuySauNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiHuySauNgayKhoiHanh") %>' />
            <br />
            PhiNangHangTruocNgayKhoiHanh:
            <asp:Label ID="PhiNangHangTruocNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiNangHangTruocNgayKhoiHanh") %>' />
            <br />
            PhiDoiLichTrinhTruocNgayKhoiHanh:
            <asp:Label ID="PhiDoiLichTrinhTruocNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiDoiLichTrinhTruocNgayKhoiHanh") %>' />
            <br />
            PhiNangHangSauNgayKhoiHanh:
            <asp:Label ID="PhiNangHangSauNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiNangHangSauNgayKhoiHanh") %>' />
            <br />
            PhiDoiLichTrinhSauNgayKhoiHanh:
            <asp:Label ID="PhiDoiLichTrinhSauNgayKhoiHanhLabel" runat="server" 
                Text='<%# Eval("PhiDoiLichTrinhSauNgayKhoiHanh") %>' />
            <br />
            ThoiGianSuDung:
            <asp:Label ID="ThoiGianSuDungLabel" runat="server" 
                Text='<%# Eval("ThoiGianSuDung") %>' />
            <br />
            HeSoCongDam:
            <asp:Label ID="HeSoCongDamLabel" runat="server" 
                Text='<%# Eval("HeSoCongDam") %>' />
            <br />
            DonViTien:
            <asp:Label ID="DonViTienLabel" runat="server" Text='<%# Eval("DonViTien") %>' />
            <br />
        </li>
    </SelectedItemTemplate>
    </asp:ListView>
    </div>
    
</asp:Content>

